package com.fesine.learn.design.pattern.structural.decorator.v1;

/**
 * @description: 加一个鸡蛋加一块钱,加一个香肠加2块钱
 * @author: fesine
 * @createTime:2019/4/28
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/28
 */
public class BattercakeWithEggSausage extends BattercakeWithEgg {

    @Override
    public String getDesc() {
        return super.getDesc()+" 加一根香肠";
    }

    @Override
    public int cost() {
        return super.cost()+2;
    }
}
